package com.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.entity.Project;
import com.util.DBHelp;
import com.util.RowMapper;

public class ProjectDao {
	DBHelp<Project> db=new DBHelp<Project>();
	
	public Project findByUserid(int userId){
		return null;
		
	}
	
	private class ProjectRowMapper implements RowMapper<Project>{

		public Project mapRow(ResultSet rs) throws SQLException {
			Project p=new Project();
			
		p.setCreateTime(rs.getString("createtime"));
		p.setId(rs.getInt("id"));
		p.setProjectMan(rs.getString("projectman"));
		p.setProjectName(rs.getString("projectman"));
		p.setProjectContent(rs.getString("projectcontent"));
			return p;
		}
		
	}
}
